package com.adcc.ags.cgw.managed.downlink;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * AMQS配置工厂
 */
public class ConnectionFactory {

    @NotEmpty
    private String host;

    @Min(0)
    @Max(65535)
    private int port;

    @NotEmpty
    private String queueManager;

    @NotEmpty
    private String channel;

    @NotEmpty
    private String recvQueue;

    @NotEmpty
    private String sendQueue;

    @JsonProperty("host")
    public String getHost() {
        return host;
    }

    @JsonProperty("host")
    public void setHost(String host) {
        this.host = host;
    }

    @JsonProperty("port")
    public int getPort() {
        return port;
    }

    @JsonProperty("port")
    public void setPort(int port) {
        this.port = port;
    }

    @JsonProperty("queueManager")
    public String getQueueManager() {
        return queueManager;
    }

    @JsonProperty("queueManager")
    public void setQueueManager(String queueManager) {
        this.queueManager = queueManager;
    }

    @JsonProperty("channel")
    public String getChannel() {
        return channel;
    }

    @JsonProperty("channel")
    public void setChannel(String channel) {
        this.channel = channel;
    }

    @JsonProperty("recvQueue")
    public String getRecvQueue() {
        return recvQueue;
    }

    @JsonProperty("recvQueue")
    public void setRecvQueue(String recvQueue) {
        this.recvQueue = recvQueue;
    }

    @JsonProperty("sendQueue")
    public String getSendQueue() {
        return sendQueue;
    }

    @JsonProperty("sendQueue")
    public void setSendQueue(String sendQueue) {
        this.sendQueue = sendQueue;
    }
}
